﻿using HB.AbpFundation.DTOs.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace HB.AbpFundation.DTOs.RBAC
{
    public class UpdateMenuInput:GetIdInput
    {
        /// <summary>
        /// 上级菜单
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string DisplayName { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [StringLength(50)]
        public string Icon { get; set; }
        /// <summary>
        /// 访问地址
        /// </summary>
        [StringLength(100)]
        public string Url { get; set; }
        /// <summary>
        /// 组件
        /// </summary>
        [StringLength(50)]
        public string Component { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(50)]
        public string Remarks { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        public List<MenuPermissionInput> Permissions { get; set; }=new List<MenuPermissionInput>();
    }
}
